import React  from 'react'
import { Button, NavBar, Space, Toast } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'
// import styles from './demo1.less'
function Index() {
    let nav=useNavigate()
    const back = () =>
        Toast.show({
          content: '点击了返回区域',
          duration: 1000,
        })
        
      const dd=()=>{
        
        nav('/set')
      }
       
  return (
    <div>
       <NavBar
          style={{
            '--height': '36px',
            '--border-bottom': '1px #eee solid',
          }}
          onBack={back}
        >
          支付成功
          

        </NavBar>
 
<Button onClick={()=>dd()} style={{backgroundColor:'orange' ,color:'white'}}>查看订单</Button>
    </div>
  )
}

export default Index
